package com.softWang.system.controller.vo.systemOperatorLog;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.time.LocalDateTime;
/**
 * <p>
 * 系统管理--操作日志表详情数据内容
 * </p>
 *
 * @author wang
 * @since 2025-04-28
 */
@Data
@ApiModel
public class SystemOperatorLogDetailResult {

    @ApiModelProperty(value = "主键id,长度19")
    @NotNull(message = "id不能为空")
    private Long id;

    @ApiModelProperty(value = "用户id,长度19")
    @NotNull(message = "userid不能为空")
    private Long userid;

    @ApiModelProperty(value = "用户名称,长度60")
    @NotBlank(message = "userName不能为空")
    @Size(max = 60, message = "userName最大长度为60")
    private String userName;

    @ApiModelProperty(value = "登录账号,长度60")
    @NotBlank(message = "loginName不能为空")
    @Size(max = 60, message = "loginName最大长度为60")
    private String loginName;

    @ApiModelProperty(value = "模块,长度20")
    @NotBlank(message = "model不能为空")
    @Size(max = 20, message = "model最大长度为20")
    private String model;

    @ApiModelProperty(value = "操作,长度20")
    @NotBlank(message = "optDesc不能为空")
    @Size(max = 20, message = "optDesc最大长度为20")
    private String optDesc;

    @ApiModelProperty(value = "请求方法,长度10")
    @NotBlank(message = "reqMethod不能为空")
    @Size(max = 10, message = "reqMethod最大长度为10")
    private String reqMethod;

    @ApiModelProperty(value = "请求参数,长度2,147,483,647")
    @NotBlank(message = "reqParameters不能为空")
    private String reqParameters;

    @ApiModelProperty(value = "执行开始时间,长度20")
    @NotBlank(message = "starttime不能为空")
    @Size(max = 20, message = "starttime最大长度为20")
    private String starttime;

    @ApiModelProperty(value = "执行结束时间,长度20")
    @NotBlank(message = "endtime不能为空")
    @Size(max = 20, message = "endtime最大长度为20")
    private String endtime;

    @ApiModelProperty(value = "请求总时长,长度20")
    @NotBlank(message = "optTime不能为空")
    @Size(max = 20, message = "optTime最大长度为20")
    private String optTime;

    @ApiModelProperty(value = "用户 IP,长度50")
    @NotBlank(message = "userIp不能为空")
    @Size(max = 50, message = "userIp最大长度为50")
    private String userIp;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime ctime;
}
